package com.zhike.common.repository;

import java.util.Date;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.annotations.ApiModelProperty;

@Document(collection = "fileUploadlog")
public class FileUploadLog {

    @Id
    private String logId;

    @ApiModelProperty(value = "用户ID")
    private String uid;

    @ApiModelProperty(value = "文件名称")
    private String fileName;

    @ApiModelProperty(value = "文件大小")
    private String fileSize;

    @ApiModelProperty(value = "文件类型")
    private String fileType;

    @ApiModelProperty(value = "时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date oprTime;

    public FileUploadLog setLogId(String logId) {
        this.logId = logId;
        return this;
    }

    public String getLogId() {
        return this.logId;
    }

    public FileUploadLog setUid(String uid) {
        this.uid = uid;
        return this;
    }

    public String getUid() {
        return this.uid;
    }

    public FileUploadLog setFileName(String fileName) {
        this.fileName = fileName;
        return this;
    }

    public String getFileName() {
        return this.fileName;
    }

    public FileUploadLog setFileSize(String fileSize) {
        this.fileSize = fileSize;
        return this;
    }

    public String getFileSize() {
        return this.fileSize;
    }

    public FileUploadLog setOprTime(Date oprTime) {
        this.oprTime = oprTime;
        return this;
    }

    public Date getOprTime() {
        return this.oprTime;
    }

}
